/*
 * Copyright (c) 2007, 2008 Johannes Krampf <Johannes.Krampf@htw-dresden.de>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

/* Ein Verb definiert sich aus folgenden Elementen:
 * 
 * unique: einzigartige Elemente, z.B. Gerundium und Partizipien
 * tense: eine konjugierbare Verbform
 * combine: eine Kombination z.B. Ich habe (tense) gelesen (unique)
 */

#ifndef LANGUAGE_H
#define LANGUAGE_H

/* Definition der Eigenschaften einer Sprache */
struct language {
	char name[32];
	/* einzigartige Formen */
	int numuniques;
	char (*uniques)[8];
	/* Personalpronomen */
	int numpronouns;
	/* Verbformen */
	int numtenses;
	char (*tenses)[8];
	/* zusammengesetze Verbformen */
	int numcombines;
	char (*combines)[8];
	/* Verben */
	char (*verbs)[32];
	int numverbs;
	/* Suffixe */
	char (*suffixes)[16];
	int numsuffixes;
	/* Regeln */
	char (*rules)[32];
	int numrules;
};

struct language* NewLanguage();
struct language* LoadFile(char* filename);
int DeleteLanguage(struct language* lang);
int ClearLanguages();

struct language* GetLanguage(char* code);

#endif /* LANGUAGE_H */
